<div class="servers">
	<span class="label-l">选择服务器</span>
	<select name="server"></select>
	<a class="submit button" href="javascript:void(0);">检测</a>
</div>

<ul class="tab-button">
	<li><a href="javascript:void(0);" class="config">MobileConfig</a></li>
	<li><a href="javascript:void(0);" class="server">Servers</a></li>
	<li><a href="javascript:void(0);" class="tableColumns">表结构</a></li>
	<li><a href="javascript:void(0);" class="orders">用户最近订单</a></li>
</ul>

<div class="tab-content">
	<ul class="records">
		<li><div></div><p></p></li>
	</ul>
</div>
<div class="tab-content">
	<table class="records">
		<caption>
			<span>Title</span>
		</caption>
		<thead>
			<tr>
				<th width="13"><input type="checkbox" name="select" value="0"/></th>
				<th width="50">svid</th>
				<th width="200">svname</th>
				<th width="150">svip</th>
				<th width="100">svlip</th>
				<th width="150">svmobip</th>
				<th width="60">svport</th>
				<th width="60">svstatus</th>
				<th width="60">svtablecount</th>
				<th width="60">OnlineNum</th>
				<th width="50">action</th>
			</tr>
		</thead>
		<tfoot><tr><td colspan="11"></td></tr></tfoot>
		<tbody><tr><td colspan="11"></td></tr></tbody>
	</table>
</div>
<div class="tab-content">
	<div class="row" style="padding-bottom: 10px;">
		<label name="tableName">表名</label>
		<input name="tableName" type="text"/> 
		<span class="tips">注：主库哦~</span>
	</div>
	<table class="records">
		<caption>
			<span>Table Schema</span>
		</caption>
		<thead>
			<tr>
				<th>Field</th>
				<th>Type</th>
				<th>Null</th>
				<th>Key</th>
				<th>Default</th>
				<th>Extra</th>
			</tr>
		</thead>
		<tfoot><tr><td colspan="6"></td></tr></tfoot>
		<tbody><tr><td colspan="6">Loading...</td></tr></tbody>
	</table>
</div>

<div class="tab-content">
	<div class="row" style="padding-bottom: 10px;">
		<label name="mid">mid</label>
		<input name="mid" type="text"/> 
	</div>
	<table class="records">
		<caption>
			<span>payment</span>
		</caption>
		<thead>
			<tr>
				<th>pid</th>
				<th>ptoken</th>
				<th>fmid</th>
				<th>fsid</th>
				<th>pmoneynow</th>
				<th>pmode</th>
				<th>pcard</th>
				<th>pamount</th>
				<th>pchips</th>
				<th>pbank</th>
				<th>pbankno</th>
				<th>pdealno</th>
				<th>pfee</th>
				<th>prate</th>
				<th>ptime</th>
				<th>pendtime</th>
				<th>pstatus</th>
				<th>payip</th>
				<th>firstpay</th>
			</tr>
		</thead>
		<tfoot><tr><td colspan="19"></td></tr></tfoot>
		<tbody><tr><td colspan="19">Loading...</td></tr></tbody>
	</table>
</div>

<script type="text/x-tmpl" class="config">
	<% var i, l = records.length; %>
	<% for(i = 0;i < l;i += 1) { %>
	<li>
		<div>
			<span>id: <%=records[i]['id']%></span>
			<span>key: <%=records[i]['key']%></span>
			<span class="<%=records[i]['cacheStatus']?'ok':'err'%>">cacheStatus: <%=records[i]['cacheStatus']%></span>
			<span>time: <%=records[i]['updated_at']%></span>
			<a href="javascript:void(0);" class="button reset" data-key="<%=records[i]['key']%>">重置</a>
		</div>
		<p><%=records[i]['value']%></p>
		<p><%=records[i]['cache']%></p>
	</li>
	<% } %>
</script>

<script type="text/x-tmpl" class="servers">
	<% var i, l = records.length, svid; %>
	<% for(i = 0;i < l;i += 1) { %>
	<% svid = records[i]['svid']; %>
	<tr>
		<td><input type="checkbox" name="id[]" value="<%=svid%>"/></td>
		<td><%=svid%></td>
		<td><%=records[i]['svname']%></td>
		<td><%=records[i]['svip']%></td>
		<td><%=records[i]['svlip']%></td>
		<td><%=records[i]['svmobip']%> - <span class="<%=status[svid]?'ok':'err'%>"><%=status[svid]?'ok':'err'%></span></td>
		<td><%=records[i]['svport']%></td>
		<td><%=records[i]['svstatus']%></td>
		<td><%=records[i]['svtablecount']%></td>
		<td><%=records[i]['OnlineNum']%></td>
		<td><%=records[i]['svid']%></td>
	</tr>
	<% } %>
</script>

<script type="text/x-tmpl" class="fields">
	<tr>
		<td><%=Field%></td>
		<td><%=Type%></td>
		<td><%=Null%></td>
		<td><%=Key%></td>
		<td><%=Default%></td>
		<td><%=Extra%></td>
	</tr>
</script>